package com.zjl.page;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;

import java.util.Queue;

public class PetInternetPage {

    //dog
    @FindBy(xpath = "//android.view.View[@content-desc=\"宠物网 您身边的养宠助手\"]")
    public WebElement petInternet;
    @FindBy(xpath = "(//android.view.View[@content-desc=\"宠物新闻\"])[2]/android.widget.TextView")
    public WebElement some1;
    @FindBy(xpath = "//android.view.View[@content-desc=\"宠物大全\"]")
    public WebElement allPet;
    @FindBy(xpath = "//android.view.View[@content-desc=\"狗常识 狗常识\"]/android.widget.Image")
    public WebElement dog;
    @FindBy(xpath = "//android.view.View[@content-desc=\"狗常识\"]/android.widget.TextView")
    public WebElement dogSome;
    @FindBy(xpath = "//android.view.View[@content-desc=\"宠物狗\"]/android.widget.TextView")
    public WebElement returnDog;

    //cat
    @FindBy(xpath = "//android.view.View[@content-desc=\"宠物猫\"]/android.widget.TextView")
    public WebElement cat;
    @FindBy(xpath = "//android.view.View[@content-desc=\"巴厘猫 巴厘猫\"]/android.widget.Image")
    public WebElement baliCat;
    @FindBy(xpath = "//android.view.View[@content-desc=\"巴厘猫\"]/android.widget.TextView")
    public WebElement baliSome;
    @FindBy(xpath = "//android.view.View[@content-desc=\"宠物猫\"]/android.widget.TextView")
    public WebElement returnCat;

    //rabbit
    @FindBy(xpath = "//android.view.View[@content-desc=\"宠物兔\"]/android.widget.TextView")
    public WebElement rabbit;
    @FindBy(xpath = "//android.view.View[@content-desc=\"豫丰黄兔 豫丰黄兔\"]/android.widget.Image")
    public WebElement yellowRa;
    @FindBy(xpath = "//android.view.View[@content-desc=\"豫丰黄兔\"]/android.widget.TextView")
    public WebElement rabbitSome;
    @FindBy(xpath = "//android.view.View[@content-desc=\"宠物兔\"]/android.widget.TextView")
    public WebElement returnRabbit;

    //mouse
    @FindBy(xpath = "//android.view.View[@content-desc=\"宠物鼠\"]/android.widget.TextView")
    public WebElement mouse;
    @FindBy(xpath = "//android.view.View[@content-desc=\"黄兔尾鼠 黄兔尾鼠\"]/android.widget.Image")
    public WebElement yellowMo;
    @FindBy(xpath = "//android.view.View[@content-desc=\"宠物鼠\"]/android.widget.TextView")
    public WebElement mouseSome;
    @FindBy(xpath = "//android.view.View[@content-desc=\"宠物鼠\"]/android.widget.TextView")
    public WebElement returnMouse;

    //fish
    @FindBy(xpath = "//android.view.View[@content-desc=\"宠物鱼\"]/android.widget.TextView")
    public WebElement fish;
    @FindBy(xpath = "//android.view.View[@content-desc=\"马达加斯加彩虹 马达加斯加彩虹\"]/android.widget.Image")
    public WebElement rainbow;
    @FindBy(xpath = "//android.view.View[@content-desc=\"宠物鱼\"]/android.widget.TextView")
    public WebElement fishSome;
    @FindBy(xpath = "//android.view.View[@content-desc=\"宠物鱼\"]/android.widget.TextView")
    public WebElement returnFish;
    public PetInternetPage(WebDriver driver) {
        PageFactory.initElements(driver,this);
    }
}
